package com.yanfan.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.yanfan.entity.IbmsRequestLogs;
import com.yanfan.mapper.IbmsRequestLogsMapper;
import com.yanfan.service.IbmsRequestLogsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author songchi
 * @since 2024-09-10
 */
@Service
public class IbmsRequestLogsServiceImpl extends ServiceImpl<IbmsRequestLogsMapper, IbmsRequestLogs> implements IbmsRequestLogsService {
    @Autowired
    private IbmsRequestLogsMapper ibmsRequestLogsMapper;

    @Override
    public IbmsRequestLogs selectLogInfoByUrl(String url) {
        QueryWrapper<IbmsRequestLogs> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("url", url);
        return ibmsRequestLogsMapper.selectOne(queryWrapper);
    }

    @Override
    public List<IbmsRequestLogs> queryPageList() {
        return ibmsRequestLogsMapper.selectList(null);
    }
}
